<?php
trait Hello {
    public function sayHello(){
        echo "Hello ";
    }
}

trait World{
    public function sayWord(){
        echo "world!";
    }
}
trait HelloWorld{
    use Hello,World;
}
class Say{
    use HelloWorld;
}
$say=new Say();
$say->sayWord();